﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Net;

namespace FileSharing
{
    public class TransfersCollection
    {
        public DownloadItem[] DownloadCollection { get; set; }
        public UploadItem[] UploadCollection { get; set; }
    }

    public class DownloadItem
    {
        public String Name { get; set; }
        public Int64 Length { get; set; }
        public float Completed { get; set; }
        public float Speed { get; set; }
        public NeighborItem[] Neighbors { get; set; }
    }

    public class NeighborItem
    {
        public IPEndPoint Address { get; set; }
        public String Name { get; set; }
        public int Speed { get; set; }
    }

    public class UploadItem
    {
        public String Name { get; set; }
        public Int64 Length { get; set; }
        public int Completed { get; set; }
        public int Speed { get; set; }
        public NeighborItem Neighbor { get; set; }
    }
}
